package cn.qiao.userservice;

import java.util.ServiceLoader;

/**
 * desc:
 *
 * @author qiao
 * @date 2023年04月24日 20:22
 */
public class Test {

    public static void main(String[] args) {
        ServiceLoader<CommonService> load = ServiceLoader.load(CommonService.class,CommonService.class.getClassLoader());
        for (CommonService commonService : load) {
            String name = commonService.getName();
            System.out.println(name);
        }
    }
}
